import http from "@/api/axios";

export const getListApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/biz/bizAccountingPeriodManage/page",
    data
  });
};

//获取账期
export const getSelectListApi = () => {
  return http({
    method: "get",
    url: "/base/biz/bizAccountingPeriodManage/selectList"
  });
};

export const addPaymentApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/biz/bizAccountingPeriodManage/addAccounting",
    data
  });
};
export const editPaymentApi = (data: Base.GeneraDataType) => {
  return http({
    method: "POST",
    url: "/base/biz/bizAccountingPeriodManage/updateBizAccountingPeriodManage",
    data
  });
};
export const updatePaymentStatusApi = (data: PaymentManagement.AddForm) => {
  return http({
    method: "post",
    url: "/base/biz/bizAccountingPeriodManage/updateStatus",
    data
  });
};
// 账期管理导出
export const accountingPeriodExcelApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/export/biz/exportExcel/accountingPeriodExcel",
    data
  });
};
